package com.gym.baselib

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
import com.blankj.utilcode.util.ProcessUtils

abstract class BaseApplication : Application() {

    companion object{
        @SuppressLint("StaticFieldLeak")
        var context:Context? = null
    }

    override fun onCreate() {
        super.onCreate()
        context = this
        if(ProcessUtils.isMainProcess()){
            init()
        }
    }

    abstract fun init()
}